package com.pan.download5.factory.impl;

import com.pan.crawler.Directory;
import com.pan.crawler.auto2.Auto2CrawlerDirectory;
import com.pan.download5.factory.DirectoryFactory;
import com.pan.download5.parse.entity.auto2.Auto2InfoDirectory;

public class Auto2DirectoryFactory implements DirectoryFactory {
    private Auto2InfoDirectory directoryInfo ;

    public Auto2DirectoryFactory(Auto2InfoDirectory directoryInfo) {
        this.directoryInfo = directoryInfo;
    }

    @Override
    public Directory createDirectory() {
        return new Auto2CrawlerDirectory(directoryInfo);
    }
}
